<?php
class thread extends DatabaseObject {
  function __construct($id=NULL) {
    parent::__construct('threads','id',$id);
  }
  function connect() {
    $this->has_many('post','thread_id');
  }
}
?>